package com.igeek.car.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单信息表
 * </p>
 *
 * @author Suzi
 * @since 2024-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
@ApiModel(value="Orders对象", description="订单信息表")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID，主键，自增")
    @TableId(value = "OrderID", type = IdType.AUTO)
    private Integer OrderID;

    @ApiModelProperty(value = "车次号，关联 checi 表的调度编号")
    @TableField("dispatch_id")
    private String dispatchId;

    @ApiModelProperty(value = "客户姓名")
    @TableField("CustomerName")
    private String CustomerName;

    @ApiModelProperty(value = "订单创建时间")
    @TableField("OrderDate")
    private LocalDateTime OrderDate;

    @ApiModelProperty(value = "订单状态")
    @TableField("Status")
    private String Status;

    @ApiModelProperty(value = "订单号")
    @TableField("orderNumber")
    private String orderNumber;

    @ApiModelProperty(value = "座位号")
    @TableField("seatNumber")
    private String seatNumber;

    @ApiModelProperty(value = "票价")
    @TableField("price")
    private BigDecimal price;


}
